home *** CD-ROM | disk | FTP | other *** search
/ Aminet 40 / Aminet 40 (2000)(Schatztruhe)[!][Dec 2000].iso / Aminet / comm / tcp / Amster.lha / Amster_Install / Source / main.c < prev    next >
C/C++ Source or Header  |  2000-06-16  |  537b  |  41 lines

  1. /*
  2. ** Amster
  3. */
  4.  
  5. #include "include/config.h"
  6.  
  7. long __stack = AMSTER_STACK ;
  8.  
  9. #include <proto/exec.h>
  10. #include <dos.h>
  11.  
  12. #include "include/thread.h"
  13. #include "include/napster.h"
  14. #include "include/prefs.h"
  15. #include "include/protos.h"
  16.  
  17.  
  18. int main(int argc, char *argv[])
  19. {
  20.     long sig;
  21.  
  22.     sig = AllocSignal(-1);
  23.     if (sig == -1) return 20;
  24.     nap_sigmask = 1L << sig;
  25.  
  26.     if (!th_init()) return 20;
  27.  
  28.     if (argc == 0) {
  29.         argc = _WBArgc;
  30.         argv = _WBArgv;
  31.     }
  32.     prf_setup(argc, argv);
  33.  
  34.     gui_run(nap_sigmask);
  35.  
  36.     th_exit();
  37.     FreeSignal(sig);
  38.  
  39.     return 0;
  40. }
  41.